package spring.aop.case1;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.UnitTestBase;

@RunWith(BlockJUnit4ClassRunner.class)
public class TestAware extends UnitTestBase {
    public TestAware() {
        super("classpath:spring-ioc.xml");
    }

    @Test
    public void testAwareApplicationontext() {
        System.out.println("testAwareApplicationontext:" + super.getBean("awareApplicationContext").hashCode());
    }


    @Test
    public void testAwareBeanName() {
        System.out.println("testAwareBeanName:" + super.getBean("awareBeanName").hashCode());
    }
}
